<script setup lang="ts">
import { inject } from 'vue';

const Onclick = inject<() => void>('Onclick')
</script>
<template>
  <button class="hm-button" @click="Onclick">这是按钮</button>
</template>
<style scoped>
.hm-button {
  background-color: #41b883;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 10px 20px;
  cursor: pointer;
}
</style>